package org.jeecg.modules.scm.api.fallback;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.modules.scm.api.ScmFinaApplyApi;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author zyf
 */
@Component
@Slf4j
public class ScmFinaApplyFallback implements ScmFinaApplyApi {
    @Setter
    private Throwable cause;

    @Override
    public Result<?> bankReceive(@RequestParam(value = "bankDataDto") String bankDataDtos, @RequestPart(required = false) MultipartFile templateContract) {
        throw new JeecgBootException("审批失败");
    }

    @Override
    public Result<?> bankLendReceive(@RequestParam(value = "bankDataDto") String bankDataDto) {
        throw new JeecgBootException("放款失败");
    }
}
